package gui;

import java.awt.BorderLayout;
import javax.swing.*;

/*Author: John Archer, Contact: john.archer.jpa@gmail.com*/
public class Segl1 extends JPanel{
    public Segl2 segL2;
    public North north;
    public Segl0 Segl0;
    public Segl1(Segl0 Segl0){
        this.setLayout(new BorderLayout());
        this.Segl0 = Segl0;
        segL2 = new Segl2(this);
        north = new North(this);
        add(north, "North");
        add(segL2, "Center");
        this.setVisible(true);
    }
    public void updateAllCardsOnFrameResize(){segL2.updateAllCardsOnFrameResize();}
    public void refreshContainer(){Segl0.refreshContainer();}
    public void resetCenterGUI(){segL2.resetCenterGUI();}
    public void setNorthTabActiveState(int which){north.setNorthTabActiveState(which);}
    public void updateBrowsers(){north.refreshProjBrowserDropDowns();}
    public void loadCard(int which, boolean reset){segL2.loadCard(which, reset);}
    public void msg(String msg){north.msg(msg);}
    public void idPrg(int which){north.idPrg(which);}
    public void dPrg(int which, int val){north.dPrg(which, val);}
}